package com.nyist.springcloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @author yangxiaogen
 * @date 2021/1/23 16:58
 */
@SpringBootApplication
//@EnableEurekaClient  这个注解只能为 eureka 提供注册发现
//@EnableEurekaClient
// @EnableDiscoveryClient  这个注解能为多种服务注册机制提供服务发现, 所以在实际的生产开发环境中, 使用到的是此注解在client端
@EnableDiscoveryClient
//@RibbonClient(name = "PAYMENT-SERVICE", configuration = MyWriteRule.class)
public class OrderMain2 {
    public static void main(String[] args) {
        SpringApplication.run(OrderMain2.class,args);
    }
}
